package com.dd.ms.auth.pojo.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dd.ms.common.pojo.annotation.Explanation;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/7/9 11:51
 * @Description 角色DO 对应数据库表
 */
@Data
@Builder
@TableName(value = "`role`", autoResultMap = true)
public class RoleDO {
    @TableId(type = IdType.AUTO)
    @Explanation(value = "角色ID 自增主键")
    private Long roleId;
    @Explanation(value = "角色名称 不能为空")
    private String roleName;
    @Explanation(value = "角色描述")
    private String roleDesc;
    @Explanation(value = "角色有效期开始时间")
    private LocalDateTime validityPeriodStart;
    @Explanation(value = "角色有效期结束时间")
    private LocalDateTime validityPeriodEnd;
}
